import axios from '@/utils/request'
import type {CategorySelectorlistmodul} from './model/CategorySelectormodul'

enum Api {
    getcategory1listap1 = '/admin/product/getCategory1',
    getcategory1listap2 = '/admin/product/getCategory2',
    getcategory1listap3 = '/admin/product/getCategory3',
}

export const reqgetcategory1list = ()=>axios.get<any,CategorySelectorlistmodul>(Api.getcategory1listap1)
export const reqgetcategory2list = (category1Id:number)=>axios.get<any,CategorySelectorlistmodul>(`${Api.getcategory1listap2}/${category1Id}`)
export const reqgetcategory3list = (category2Id:number)=>axios.get<any,CategorySelectorlistmodul>(`${Api.getcategory1listap3}/${category2Id}`)